<ng-template #itemsTpl>
  <div class="lv-list-items">
    <ng-container *ngFor="let item of lvDataSource; let index = index">
      <ng-container *ngTemplateOutlet="lvItemRender; context: { $implicit: item, index: index }"></ng-container>
    </ng-container>
    <ng-content></ng-content>
  </div>
</ng-template>

<lv-loading [lvLoading]="lvLoading">
  <div *ngIf="lvLoading && !lvDataSource?.length; else itemsTpl" class="lv-list-loading"></div>
</lv-loading>
